home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
develop, the CD; issue 1
/
Apple_Develop_1989.bin
/
Declaration ROM
/
ExROM1Fun.a.lst
< prev
Wrap
File List
|
1989-09-18
|
24KB
|
357 lines
MC680xx Assembler - Ver 3.1 18-Sep-89 Page 1
Copyright Apple Computer, Inc. 1984-1988
Loc F Object Code Addr M Source Statement
;---------------------------------------------------------------------------------------
;
;File: ExROM1Fun.a
;Dev system: MPW 3.0
;By: MacDTS
;Date: 8/08/89
;
; This is a very small sample declaration ROM with the required board
; sResource and a functional sResource (which is blank).
; The board id and functional sResource types are especially bogus - your values
; must be obtained from MacDTS, after sending in the required information.
; Anyway, this file shows how to put together a ROM. You also need
; the Cards and Drivers book, with the source code for a ROM and driver.
; Both are stripped down versions of the Apple Macintosh Video card ROM and
; video driver aka the TFB board. There are also other examples and exploded
; drawings of declaration ROMs on the Developer Helper CD. Volume one is
; known as "Phil and Dave's Excellent CD". The examples, tools, and drawings are
; also on AppleLink. To get to them, go into (in order):
;
; Developer Services bulletin board icon
; Developer Technical Support folder
; Macintosh folder
; Tools folder
; Card Dev tools folder
;
;
; In the Card Dev Tools folder are other folders containing tools and
; libraries. These include:
;
; Examples folder - contains example declaration ROMs, video driver,
; source to a program like the GetsInfo program found
; in the Slot Tools folder
; Gamma Information folder - contains documention discussing gamma table format.
; This will be updated in later documentation for the
; new 32-bit QuickDraw. Eventually, the Cards and
; Drivers book will contain the new gamma information,
; NuBusTester folder - contains a library to detect new ROMs with fixed
; Slot Manager (Slot Manager that runs in 32-bit mode
; as opposed to 24-bit mode)
; Training Tools folder - contains MacDraw drawings of exploded
; configuration ROMs (like the existing Apple video
; card ROM and the Apple EtherNet board ROM.
;
; Slot tools folder - Inside, you'll find these tools:
;
; CRCPatch - MPW tool that calculates and patches in
; the crc value of the assembled Declaration ROM file.
;
; Data - MPW tool takes the assembled file and strips
; off the code 0 segment,leaving the code 1 segment
; (the raw code). The resulting file can then be
; downloaded to a rom burning machine.
;
; Tjscomm - A small terminal program that can be used
; to download the data file to a rom burning machine.
;
; SlotMgrTst - application that excersises the slot
; manager by making slot manager calls
;
; GetsInfo - application that displays sResources and
; other configuration ROM information
;
; Disclaimer: the above may be reorganized at any time, or changed via additions
; and deletions.
;
;
; The general structure of this example ROM is:
;
; [Format/Header]
; |
; |
; [sResource Directory]
; / \
; / \
MC680xx Assembler - Ver 3.1 18-Sep-89 Page 2
Copyright Apple Computer, Inc. 1984-1988
Loc F Object Code Addr M Source Statement
; / \
; / \
; [Board sResource] [Functional sResource]
; - Primary Init. - Driver Directory.
; - board id
; - Vendor Info.
;
;
; If you want to print this, I suggest using landscape mode!!!
;
;-------------------------------------------------------------------
MACHINE MC68020
;=====================================================================
; Initial Assembler Directives
;=====================================================================
PRINT ON
;
;=====================================================================
; BEGIN Declaration ROM
;=====================================================================
00000 SampleDeclROM MAIN
00000
00000
00000
00000 ;*************************************************************
00000 ; Constants
00000 ;*************************************************************
00000
00000 0000 1000 ROMSize EQU $1000 ;4K byte ROM in this example
00000 0000 ABCD TheBoardId EQU $ABCD ;the Board Id (DON'T USE
00000 ; THIS-GET from DTS!)
00000
00000 ;board sResource equates
00000 ;the following two lines are
00000 ;catBoard EQU 1 ;commented out since the equates
00000 ;TypeBoard EQU 0 ;are already defined in ROMEqu.a
00000 0000 0000 DrSwBoard EQU 0 ;NOT in ROMEqu.a, define it here
00000 0000 0000 DrHwBoard EQU 0 ;NO